﻿using Microsoft.Xna.Framework;


namespace LoD.WPClientLibrary.Animations {
    public class ThrobBounce : Throb {
        public ThrobBounce(float startScale, float endScale, float speed)
            : base(startScale, endScale, speed) { }

        public override Vector2 ModifyScale(Vector2 original) {
            //keep it going
            Vector2 scale = base.ModifyScale(original);
            if (!Animating) {
                Animating = true;
                Speed *= -1;
            }
            return scale;
        }
    }
}